# -*- coding: utf-8 -*-
from odoo import models, api, fields, tools
from odoo.exceptions import UserError
import re


class product(models.Model):

    _name = "proman.product"
    _description = "项目产品"
    _table = "proman_product"
    _order = "sequence"

    sequence = fields.Integer(string="排序",translate = 0)
    product_code = fields.Char(string="编码",translate = 0)
    name = fields.Char(string="产品名称",help = '请输入产品名称',required = 1,translate = 0)
    indicator_category_id = fields.Many2one(string="产品类型",comodel_name = 'proman.product_category',translate = 0)
    uom_id = fields.Many2one(string="计量单位",comodel_name = 'uom.uom',translate = 0)
    memo = fields.Html(string="备注说明",translate = 0)
